home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1576.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  4.8 KB  |  191 lines

  1. 150
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. Shell 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baShell executes a file.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baShell( Operation, Filename, Args, WorkDir, State )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String, string, string, string, string. 
  36. --- RECORDSEPARATOR ---
  37. Operation is the action to perform on the file. 
  38. --- RECORDSEPARATOR ---
  39. Filename is the name of the file the shortcut will point to. 
  40. --- RECORDSEPARATOR ---
  41. Args is any command line arguments to use. 
  42. --- RECORDSEPARATOR ---
  43. WorkDir is the working directory to set. 
  44. --- RECORDSEPARATOR ---
  45. State is the state to start the program in.
  46. --- RECORDSEPARATOR ---
  47.  
  48. --- RECORDSEPARATOR ---
  49. Returns:
  50. --- RECORDSEPARATOR ---
  51.  
  52. --- RECORDSEPARATOR ---
  53. Integer. 
  54. --- RECORDSEPARATOR ---
  55. Returns a number larger than 32 if successful. 
  56. --- RECORDSEPARATOR ---
  57. Returns an error code. If the return is less than 32 than an error occurred. 
  58. --- RECORDSEPARATOR ---
  59. Possible errors include: 
  60. --- RECORDSEPARATOR ---
  61. --- RECORDSEPARATOR ---
  62. System was out of memory. 
  63. --- RECORDSEPARATOR ---
  64. --- RECORDSEPARATOR ---
  65. File was not found. 
  66. --- RECORDSEPARATOR ---
  67. --- RECORDSEPARATOR ---
  68. Path was not found. 
  69. --- RECORDSEPARATOR ---
  70. --- RECORDSEPARATOR ---
  71. Sharing or network-protection error. 
  72. --- RECORDSEPARATOR ---
  73. --- RECORDSEPARATOR ---
  74. Library required separate data segments for each task. 
  75. --- RECORDSEPARATOR ---
  76. --- RECORDSEPARATOR ---
  77. There was insufficient memory to start the application. 
  78. --- RECORDSEPARATOR ---
  79. 10 
  80. --- RECORDSEPARATOR ---
  81. Windows version was incorrect. 
  82. --- RECORDSEPARATOR ---
  83. 11 
  84. --- RECORDSEPARATOR ---
  85. Executable file was invalid. Either it was 
  86. --- RECORDSEPARATOR ---
  87. not a Windows application or there was an 
  88. --- RECORDSEPARATOR ---
  89. error in the .EXE image. 
  90. --- RECORDSEPARATOR ---
  91. 12 
  92. --- RECORDSEPARATOR ---
  93. Application was designed for a different operating system. 
  94. --- RECORDSEPARATOR ---
  95. 13 
  96. --- RECORDSEPARATOR ---
  97. Application was designed for MS-DOS 4.0. 
  98. --- RECORDSEPARATOR ---
  99. 14 
  100. --- RECORDSEPARATOR ---
  101. Type of executable file was unknown. 
  102. --- RECORDSEPARATOR ---
  103. 15 
  104. --- RECORDSEPARATOR ---
  105. Attempt was made to load a real
  106. --- RECORDSEPARATOR ---
  107. -mode application (developed for an earlier version 
  108. --- RECORDSEPARATOR ---
  109. of Windows). 
  110. --- RECORDSEPARATOR ---
  111. 16 
  112. --- RECORDSEPARATOR ---
  113. Attempt was made to load a second instance of an executable file containing multiple 
  114. --- RECORDSEPARATOR ---
  115. data segments that were not marked read-only. 
  116. --- RECORDSEPARATOR ---
  117. 19 
  118. --- RECORDSEPARATOR ---
  119. Attempt was made to load a compressed executable file. The file must be 
  120. --- RECORDSEPARATOR ---
  121. decompressed before it can be loaded. 
  122. --- RECORDSEPARATOR ---
  123. 20 
  124. --- RECORDSEPARATOR ---
  125. Dynamic-link library (DLL) file was invalid. One of the DLLs required to run this 
  126. --- RECORDSEPARATOR ---
  127. application was corrupt. 
  128. --- RECORDSEPARATOR ---
  129. 21 
  130. --- RECORDSEPARATOR ---
  131. Application requires 32-bit extensions. 
  132. --- RECORDSEPARATOR ---
  133. 26 
  134. --- RECORDSEPARATOR ---
  135. A sharing violation occurred. 
  136. --- RECORDSEPARATOR ---
  137. 27 
  138. --- RECORDSEPARATOR ---
  139. The filename association is incomplete or invalid. 
  140. --- RECORDSEPARATOR ---
  141. 29 
  142. --- RECORDSEPARATOR ---
  143. The DDE transaction failed. 
  144. --- RECORDSEPARATOR ---
  145. 30 
  146. --- RECORDSEPARATOR ---
  147. The DDE transaction could not be completed because other DDE transactions were 
  148. --- RECORDSEPARATOR ---
  149. being processed. 
  150. --- RECORDSEPARATOR ---
  151. 31 
  152. --- RECORDSEPARATOR ---
  153. There is no application associated with the given filename
  154. --- RECORDSEPARATOR ---
  155.  
  156. --- RECORDSEPARATOR ---
  157. Examples:
  158. --- RECORDSEPARATOR ---
  159.  
  160. --- RECORDSEPARATOR ---
  161. Director: 
  162. --- RECORDSEPARATOR ---
  163. set ok = baShell( "open", "c:\windows\notepad.exe", "myfile.txt" , "", "normal" ) 
  164. --- RECORDSEPARATOR ---
  165. set ok = baShell( "edit", "myfile.htm" , "", "", "normal" ) 
  166. --- RECORDSEPARATOR ---
  167. Authorware: 
  168. --- RECORDSEPARATOR ---
  169. ok := baShell( "open", "myfile.doc", "" , "", "normal" )
  170. --- RECORDSEPARATOR ---
  171.  
  172. --- RECORDSEPARATOR ---
  173. Notes:
  174. --- RECORDSEPARATOR ---
  175.  
  176. --- RECORDSEPARATOR ---
  177. This function can execute either a document or a program file. If it opens a 
  178. --- RECORDSEPARATOR ---
  179. document file, the Args parameter is ignored. The Operation can be any action that 
  180. --- RECORDSEPARATOR ---
  181. is registered with the document type, most commonly 'open' and 'print'. If the 
  182. --- RECORDSEPARATOR ---
  183. specified action is not registered to the document, the function will return 31. Only 
  184. --- RECORDSEPARATOR ---
  185. the 'open' action works on program files.